<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>C Macros</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="C_Macros"></a>C Macros</h1><div class=CBody><p>C Macros will get use in C world Env.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#C_Macros" >C Macros</a></td><td class=SDescription>C Macros will get use in C world Env.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Macros" >Macros</a></td><td class=SDescription></td></tr><tr class="SMacro SIndent2 SMarked"><td class=SEntry><a href="#LOGGER_UPDATE_BIT" >LOGGER_UPDATE_BIT</a></td><td class=SDescription>This macro used to set respective &lt;message_id&gt; in C testcase.</td></tr><tr class="SMacro SIndent2"><td class=SEntry><a href="#LOGGER_HOLD_STATE" >LOGGER_HOLD_STATE</a></td><td class=SDescription>This macro can be used to Hold the C testcase execution until SV/UVM testcase release the hold state.</td></tr><tr class="SMacro SIndent2 SMarked"><td class=SEntry><a href="#READCHECK" >READCHECK</a></td><td class=SDescription>This macro can be used to check the expected data from specific address. </td></tr><tr class="SMacro SIndent2"><td class=SEntry><a href="#LOGGER_UPDATE_DATA" >LOGGER_UPDATE_DATA</a></td><td class=SDescription>This macro having one fixed argument which is message id and rest are variable arguments. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Macros"></a>Macros</h3></div></div>

<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="LOGGER_UPDATE_BIT"></a>LOGGER_UPDATE_BIT</h3><div class=CBody><p>This macro used to set respective &lt;message_id&gt; in C testcase.</p><blockquote><pre>LOGGER_UPDATE_BIT(1);</pre></blockquote></div></div></div>

<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="LOGGER_HOLD_STATE"></a>LOGGER_HOLD_STATE</h3><div class=CBody><p>This macro can be used to Hold the C testcase execution until SV/UVM testcase release the hold state.</p><blockquote><pre>LOGGER_HOLD_STATE();</pre></blockquote><p>*Note : Resevered 31st Bit for holding state *</p></div></div></div>

<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="READCHECK"></a>READCHECK</h3><div class=CBody><p>This macro can be used to check the expected data from specific address.&nbsp; Also Can be used as C checker to confirm Write operation is happened or not to perticular address.</p><blockquote><pre>READCHECK(BASE_ADDR,OFFSET,exp_data);</pre></blockquote></div></div></div>

<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="LOGGER_UPDATE_DATA"></a>LOGGER_UPDATE_DATA</h3><div class=CBody><p>This macro having one fixed argument which is message id and rest are variable arguments.&nbsp; This macro is used to pass different set of data to SV testcase.</p><blockquote><pre>1. LOGGER_UPDATE_DATA(1,data1,data2);
2. LOGGER_UPDATE_DATA(1,data1,data2,data3);</pre></blockquote></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>